package com.yunsom.testdemo.design.singleton;

/**
 * @author Xbao
 * @version 1.0
 * @description 饿汉式
 * @date 2021/3/9 18:44
 */
public class HungrySingleton {

  private static HungrySingleton instance = new HungrySingleton();

  private HungrySingleton(){}

  public HungrySingleton getInstance(){
    return instance;
  }

}
